package cn.wolfcode.mapper;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);



    List<Employee> selectLimit(QueryObject qo);

    void insertByRoleId(@Param("id") Long id, @Param("ids") Long ids);

    Employee selectOne(String username);

    void deleteByRoleId(Long id);
}